VERSION = 0.2
DEFINES += VERSION_STRING=\\\"$${VERSION}\\\"
QT       += core gui sql network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = isap-server

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ServerTCP/servertcp.cpp \
    base/database.cpp \
    comboBoxModel/qcomboboxmodel.cpp \
    dialog.cpp \
    ekran/ekran_flag.cpp \
    ekran/ekran_ocen.cpp \
    main.cpp \
    mainwindow.cpp \
    sql/sqlrequest.cpp

HEADERS += \
    ServerTCP/servertcp.h \
    base/database.h \
    comboBoxModel/qcomboboxmodel.h \
    dialog.h \
    ekran/ekran_flag.h \
    ekran/ekran_ocen.h \
    mainwindow.h \
    sql/sqlrequest.h

FORMS += \
    dialog.ui \
    ekran/ekran_flag.ui \
    ekran/ekran_ocen.ui \
    mainwindow.ui

TRANSLATIONS += \
    ISAP-server_ru_RU.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
macx:ICON = $${PWD}/img/isap.icns
#macx:ICON = $${PWD}/img/isap-logo-icon.icns
win32: RC_ICONS = $$PWD/img/isap.ico

DISTFILES += \
    img/isap.ico
 #   img/isap-logo-icon.ico

RESOURCES += \
    isaptresources.qrc
